package com.jcfk.system.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_operate_log")
public class SysLog implements Serializable {

    /**
     * 数据主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 日志级别
     */
    @TableField(value = "log_level")
    private String logLevel;

    /**
     * 应用
     */
    @TableField(value = "application_name")
    private String applicationName;

    /**
     * 服务器
     */
    @TableField(value = "server_name")
    private String serverName;

    /**
     * 模块
     */
    @TableField(value = "modular")
    private String modular;

    /**
     * 功能
     */
    @TableField(value = "business_type")
    private String businessType;

    /**
     * 日志内容
     */
    @TableField(value = "info")
    private String info;

    /**
     * 请求url
     */
    @TableField(value = "url")
    private String url;

    /**
     * 类与方法
     */
    @TableField(value = "class_function")
    private String classFunction;

    /**
     * 请求方式
     */
    @TableField(value = "http_method")
    private String httpMethod;

    /**
     * 客户端IP
     */
    @TableField(value = "client_ip")
    private String clientIp;

    /**
     * 用户代理
     */
    @TableField(value = "user_agent")
    private String userAgent;

    /**
     * 请求路径
     */
    @TableField(value = "request_path")
    private String requestPath;

    /**
     * 请求体
     */
    @TableField(value = "request_body")
    private String requestBody;

    /**
     * 响应体
     */
    @TableField(value = "response_body")
    private String responseBody;

    /**
     * 相应代码
     */
    @TableField(value = "response_code")
    private Integer responseCode;

    /**
     * 是否为页面请求
     */
    @TableField(value = "page_request")
    private String pageRequest;

    /**
     * 异常信息
     */
    @TableField(value = "error_msg")
    private String errorMsg;

    /**
     * 请求时间
     */
    @TableField(value = "request_time")
    private Date requestTime;

    /**
     * 请求耗时(毫秒)
     */
    @TableField(value = "execution_time")
    private float executionTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 创建人主键
     */
    @TableField(value = "created_user_id")
    private String createdUserId;

    /**
     * 创建人姓名
     */
    @TableField(value = "created_user_name")
    private String createdUserName;

}
